import org.springframework.beans.BeanUtils;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @ClassName L2C
 * @Description
 * @Author Jingxiao.Ye
 * @Date 2021/12/5 下午11:48
 * @Version V1.0
 * @Since JDK 11
 */
public class L2C {

    public static void main(String[] args) {
        //spring api注册
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(BeanConfig.class);
        applicationContext.registerBean("test",TestBean.class);
        TestBean test = applicationContext.getBean("test", TestBean.class);
        test.test();
    }
}
